<!-- 普通字典数据 -->
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/common/jquery-2.0.0.min.js"></script>
<link rel='stylesheet prefetch'
	href='${pageContext.request.contextPath}/css/bootstrap/bootstrap.min.css'>
<link rel='stylesheet prefetch'
	href='${pageContext.request.contextPath}/css/admin/admin_info.css'>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/admin/admin_info.js"></script>
</head>

<body>
	<div class="container-fluid" style="padding: 0 !important;">
		<div class="row-fluid">
			<div class="span12">
				<div id="myTabContent" class="tab-content">
					<div class="tab-pane fade in active kissy" id="design">
						<div class="container-fluid">
							<div class="row-fluid">
								<div class="span12">
									<table class="table" style="font-size: 10px;">
										<thead>
											<tr>
												<th>序号</th>
												<th>CODE</th>
												<th>名称</th>
												<th>关联数据字典</th>
												<th>增加数据字典</th>
											</tr>
										</thead>
										<tbody>
											<c:forEach items="${dictionaryTypes}" var="data">
												<tr>
													<td>${data.id}</td>
													<td>${data.code}</td>
													<td>${data.name}</td>
													<td>
														
														<!--关联数据字典--> <select class="zl">
															<c:forEach items="${dictionaries}" var="middle">
															<c:if test="${middle.type_code eq data.code}">
																<option>${middle.code}  &nbsp; ${middle.value }</option>
															</c:if>
																
															</c:forEach>
													</select>
													</td>
													<td><a href="javaScript:;" class="a">+</a></td>
												</tr>
											</c:forEach>
										</tbody>
									</table>

								</div>
							</div>
						</div>
					</div>
					<!--增加弹出框-->
					<div class="hide-body-a" style="height: 210px;">
						<div class="close-window-a">
							<!-- 关闭窗口，也就是触发关闭div的事件-->
							<a href="javascript:;" title="关闭" class="close-a">×</a>
							<h5 style="margin-left: 11px;">增加字典数据</h5>
							<span class="dicUrl" style="display:none">/dictionary/add_dictionary.do</span>
						</div>
						<!-- 中间主体显示div 可以增加其他的样式-->
						<div class="login-body dform">
							<form class="signin" name="loginform" action="" method="post">
								<ol>
									<li><label style="float: left; margin-left: 0px; width: 40px;">CODE:</label>
										<input class="zlcode" type="text" style="margin: 16PX;" /></li>
									<li><label style="float: left; margin-left: 0px; width: 40px;">名称:</label>
										<input class="zlname" type="text" style="margin: 16PX;" /></li>
									<li style="width: 55px; margin-left: 118px;">
									    <input class="btn btn-primary abtn" type="button" name="submit" value="确定 " /></li>
								</ol>
							</form>
						</div>
					</div>
					<div class="body-a"></div>
					<!--增加弹出框结束-->
					<!--分页-->
					<div class="paging">
						<div style="display: none;">
							<span class="pages">${data.property.pageCount}</span>
							<!--页数-->
							<span class="pageIndex">${data.property.pageIndex}</span>
							<!--当前页码-->
							<span class="pagesize">3</span>
							<!--每页记录数-->
							<span class="hasNext">${data.property.hasNext}</span>
							<!--是否有下一页(boolean)-->
							<span class="userId">designer_id=19</span>
							<!--用户ID-->
							<span class="commonUrl">${pageContext.request.contextPath}</span>
							<!--绝对路径-->
						</div>
						<div class="showPaging">
							<a class="prev"
								href="${pageContext.request.contextPath}/demand/getSpecial.do?designer_id=${designer_id }&pageindex=${json.property.pageIndex-1 }&pagesize=4">
								上一页</a> <select class="pageNum">
								<option value="0">请选择跳转的页数</option>
								<option value="1">第1页</option>
							</select> <a class="next"
								href="${pageContext.request.contextPath}/demand/getSpecial.do?designer_id=${designer_id }&pageindex=${json.property.pageIndex+1 }&pagesize=4">
								下一页</a>
						</div>
					</div>
					<!--分页结束-->
				</div>
			</div>
		</div>
	</div>

</body>

</html>